package com.ruoyi.web.controller.community.advert;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.community.domain.advert.AdvertUrl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ad")
public class AdController {

    @GetMapping("/")
    public AjaxResult getPositionUrl() {
        AdvertUrl advertUrl = new AdvertUrl();
        advertUrl.setSwiper("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic169.nipic.com%2Ffile%2F20180616%2F21511972_105241980000_2.jpg&refer=http%3A%2F%2Fpic169.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1643997160&t=2f752c00776810e4f1932011fefc2770");
        advertUrl.setFirst("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool" +
                ".cn%2Fcommunity%2F015cb05956012aa8012193a3ae62c7.png%402o.png&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1643997514&t=bd4c8eb4b89bc5382d914229eec5ac00");
        advertUrl.setCenter("https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwww.admaimai.com%2Fuploadfiles%2Ftimg%2878%29.jpg&refer=http%3A%2F%2Fwww.admaimai.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1643998770&t=7fbb37e702ac58cfeea9bdd7beff4639");
        return AjaxResult.success(advertUrl);
    }
}
